@echo off
chcp 65001
set cdir=%~dp0
echo %cdir%

for /f "delims=" %%i in ('dir /ad/b/s "%cdir%" ') do ( 
    if "%%~nxi" equ ".git" (

        echo %%~dpi
        cd %%~dpi

        git pull
        :: 查看git最新(最后一次)提交记录的注释 格式为 提交日期 commit hash commit信息标题
        git show -s --format=%s 
    )

)
echo Over!
pause